package com.robotserver.orders.mapper;

import com.robotserver.orders.entity.JdOrders;
import com.robotserver.orders.param.biz.JdOrderPullParam;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface JdOrdersMapper {
    void add(JdOrders jdOrders);
    void update(JdOrders jdOrders);
    JdOrders getBySkuIdAndOrderId(@Param("skuId") Long skuId,@Param("orderId") Long orderId);

    JdOrders getByDataId(@Param("dataId") String dataId);

    List<JdOrders> getOrderList(JdOrderPullParam param);

    List<JdOrders> getListByOrderId(@Param("orderId") String orderId);

    JdOrders getByordAndSku(@Param("orderId")Long order_id,@Param("skuId") Long sku_id);

    void deleteOrdersExpired(@Param("expiredTime") Integer expiredTime);

    void updateUpdateTime(@Param("childOrderNo") String childOrderNo);
}